package com.learn2.controller;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 9:49 2018-11-15
 * @Modify by:
 */
@Controller
public class IndexController {
  @RequestMapping("/hello")
  public String goIndex(){
    System.out.println("进入控制器了");
    int i=1/0;
    return "index";
  }

}
